// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   StaffDTO.java

package com.hfstu.pms.dto;

import com.google.common.collect.Lists;
import com.hfstu.pms.model.Staff;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.apache.commons.beanutils.BeanUtils;

public class StaffDTO
{

	private String id;
	private String code;
	private String name;
	private Integer orderIndex;
	private String description;
	private String deptId;
	private List deptIds;

	public StaffDTO()
	{
		deptIds = Lists.newArrayList();
	}

	public String getDeptId()
	{
		return deptId;
	}

	public void setDeptId(String deptId)
	{
		this.deptId = deptId;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public Integer getOrderIndex()
	{
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex)
	{
		this.orderIndex = orderIndex;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public List getDeptIds()
	{
		return deptIds;
	}

	public void setDeptIds(List deptIds)
	{
		this.deptIds = deptIds;
	}

	public StaffDTO transfer(Staff staff)
	{
		try
		{
			BeanUtils.copyProperties(this, staff);
		}
		catch (IllegalAccessException e)
		{
			e.printStackTrace();
		}
		catch (InvocationTargetException e)
		{
			e.printStackTrace();
		}
		return this;
	}
}
